﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Overview
{
    class EventSite
    {
        private string name;// Name of the Event    
        private int capacity;// Capacity of the Event
       

      DataHelper dh = new DataHelper();

        public EventSite(String name, int capacity)// Constructs a Event site with a name and capacity
        {
            this.name = name;
            this.capacity = capacity;
        }
        public String Name
        {
             get { return name; }
        }
        public int Capacity
        {
            get { return capacity; }
        }

        public virtual int numOfVisitors() //returns the total number of visitors
        {
            return dh.totalVisitors();
        }
        public int numOfExit()
        {
            return dh.totalExits();//todo
        }

        public int numEntered()// the total number on the terrain
        {
            return dh.totalVisitors() - dh.totalExits(); 
        }
        public int yetToEnter()// returns the number of visitors yet to visit
        {
            return dh.totalVisitors() - numEntered();
        }
        public double totalSpent()
        {
            return dh.totalMoneySpent();
        }
        public double totalAcounts()
        {
            return dh.totalMoneyAccount();
        }
        

    } 
}
